package edu.ahut.corejava2;

import java.util.*;

/**
 * 从键盘上输入若干个整数，去掉重复元素后从小到大打印出来
 */
public class SortAndUniqueNumbers2 {
    public static void main(String[] args) {

        Scanner cin = new Scanner(System.in);
       List<Integer> a=new Vector<>();
        while (cin.hasNext()) {
            int cur = cin.nextInt();
            if (a.contains(cur)) continue;
            a.add(cur);
        }
        Collections.sort(a, (o1, o2) -> o2.intValue()-o1.intValue());
        System.out.println(a);
    }

}
